{extend name="public:base" /}
{block name="action"}
<a type="button" class="btn btn-w-m btn-primary add" href="{:url('create')}"><i class="fa  fa-plus"></i>添加</a>
{/block}
{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight" xmlns="http://www.w3.org/1999/html">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="table-responsive">
                        <table class="table table-striped datalist-table">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>标题</th>
                                <th>创建时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {notempty name="list"}
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.title}</td>
                                <td>{$vo.create_time}</td>
                                <td class="project-actions">
                                    <a href="{:url('edit',['id'=>$vo.id])}" class="btn btn-warning btn-sm edit-btn" data-id="{$vo.id}">
                                        <i class="fa fa-edit"></i> 编辑
                                    </a>
                                    <a href="{:url('delete', ['id' => $vo['id']])}"
                                       class="btn btn-danger btn-sm ajax-del"><i class="fa fa-trash-o"></i> 删除 </a>
                                </td>
                            </tr>
                            {/volist}
                            {/notempty}
                            </tbody>
                        </table>
                        {$list->render()}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <template>

    </template>
</div>
{/block}
{block name="js"}
</script>
{/block}